/**
 * Created by chenyu on 17/10/17.
 */
var mongoose = require('mongoose');

module.exports.init = function () {
    var areaSchema = new mongoose.Schema({
        region_name: {type: String, unique: true},
        width: Number,
        height: Number,
        background_image: String,
        start_point: [Number]
    });
    var Area = mongoose.model('Area', areaSchema);
};